package com.rainng.coursesystem.controller;


import com.rainng.coursesystem.scheduledjob.JobTasks;
import com.rainng.coursesystem.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.boot.autoconfigure.batch.BatchProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@Api(tags = "主页")
public class HomeController extends BaseController {

    private final UserService service;

    @Resource
    private JobTasks jobService;

    public HomeController(UserService service) {
        this.service = service;
    }

    @RequestMapping("/")
    public String hello() {
        return "Hello System";
    }

//    @ApiOperation(value = "接口名称测试接口",notes = "入参无")
//    @GetMapping("/test")
//    public Object test() {
//        return "Hello shifeng,test jenkins success";
//    }
//
//    @GetMapping("/test/auth")
//    public Object testcase() {
//        return service.getLoginStatus();
//    }
//
//    @GetMapping("/test/schedule")
//    public Object testSchedule() {
//        jobService.addBatchTask();
//        return "";
//    }

}
